package com.ruoyi.project.good.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 商品秒杀对象 goods_kill
 * 
 * @author ruoyi
 * @date 2020-07-01
 */
public class GoodsKill extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long killId;

    /** 秒杀编号 */
    @Excel(name = "秒杀编号")
    private String killNo;

    /** 商品id */
    @Excel(name = "商品id")
    private Long goodsId;

    /** 开始时间 */
//    @JsonFormat(pattern = "yyyy-MM-dd")
//    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private String startTime;

    /** 结束时间 */
//    @JsonFormat(pattern = "yyyy-MM-dd")
//    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private String endTime;

    /** 1：限时秒杀  2：促销秒杀 */
    @Excel(name = "1：限时秒杀  2：促销秒杀")
    private Integer killType;

    /** 0:草稿箱 1:正式发布 */
    @Excel(name = "0:草稿箱 1:正式发布")
    private Integer draftType;

    /** 单账号最多可购买数 */
    @Excel(name = "单账号最多可购买数")
    private Long maxPurchase;

    /** $column.columnComment */
    @Excel(name = "单账号最多可购买数")
    private Long isDel;

    /** 秒杀状态。1:进行中;2:结束 */
    @Excel(name = "秒杀状态。1:进行中;2:结束")
    private Integer state;

    public void setKillId(Long killId) 
    {
        this.killId = killId;
    }

    public Long getKillId() 
    {
        return killId;
    }
    public void setKillNo(String killNo) 
    {
        this.killNo = killNo;
    }

    public String getKillNo() 
    {
        return killNo;
    }
    public void setGoodsId(Long goodsId) 
    {
        this.goodsId = goodsId;
    }

    public Long getGoodsId() 
    {
        return goodsId;
    }
    public void setStartTime(String startTime)
    {
        this.startTime = startTime;
    }

    public String getStartTime()
    {
        return startTime;
    }
    public void setEndTime(String endTime)
    {
        this.endTime = endTime;
    }

    public String getEndTime()
    {
        return endTime;
    }
    public void setKillType(Integer killType) 
    {
        this.killType = killType;
    }

    public Integer getKillType() 
    {
        return killType;
    }
    public void setDraftType(Integer draftType) 
    {
        this.draftType = draftType;
    }

    public Integer getDraftType() 
    {
        return draftType;
    }
    public void setMaxPurchase(Long maxPurchase) 
    {
        this.maxPurchase = maxPurchase;
    }

    public Long getMaxPurchase() 
    {
        return maxPurchase;
    }
    public void setIsDel(Long isDel) 
    {
        this.isDel = isDel;
    }

    public Long getIsDel() 
    {
        return isDel;
    }
    public void setState(Integer state) 
    {
        this.state = state;
    }

    public Integer getState() 
    {
        return state;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("killId", getKillId())
            .append("killNo", getKillNo())
            .append("goodsId", getGoodsId())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("killType", getKillType())
            .append("draftType", getDraftType())
            .append("maxPurchase", getMaxPurchase())
            .append("createTime", getCreateTime())
            .append("isDel", getIsDel())
            .append("state", getState())
            .toString();
    }
}
